package com.tanhua.server.service;

import com.tanhua.model.db.User;
import com.tanhua.model.vo.HuanXinUserVo;
import com.tanhua.server.interceptor.UserHolder;
import org.springframework.stereotype.Service;

@Service
public class HuanXinService {


    public HuanXinUserVo getHuanXin() {
        User user = UserHolder.getUser();
        HuanXinUserVo vo  = new HuanXinUserVo();
        vo.setUsername(user.getHxUser());
        vo.setPassword(user.getHxPassword());
        return vo;
    }
}
